﻿using System.ComponentModel.DataAnnotations;
using GlobalResources;
using Resources;

namespace ContactManagement.Models
{
    /// <summary>
    /// Datenmodell für das Einloggen des Users
    /// </summary>
    public class LogOnModel
    {
        [Required(ErrorMessageResourceType = typeof(SystemMessages), ErrorMessageResourceName = "InsertUsernameRESX")]
        [Display(Name = "LoginnameRESX", ResourceType = typeof(AccountViews))]
        public string UserName { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "PasswordRESX", ResourceType = typeof(AccountViews))]
        public string Password { get; set; }

        [Display(Name = "RemberLoginRESX", ResourceType = typeof(AccountViews))]
        public bool RememberMe { get; set; }
    }
}